package com.heima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.common.dtos.ResponseResult;

/**
 * @author xiaquanen
 * @version 1.0
 * @project heima-leadnews
 * @date 2024/7/18 21:51:02
 */
public interface ApArticleService extends IService<ApArticle>{

    /**
     * 文章查看
     *
     * @param articleHomeDto
     * @return
     */
    ResponseResult load(ArticleHomeDto articleHomeDto, int target);


    /**
     * 同步文章信息
     *
     * @param articleDto
     * @return
     */
    ResponseResult syncArticle(ArticleDto articleDto);
}
